import request from "@/utils/request";
import Qs from "qs";
// 登录请求
export const login = (data) => {
	return request({
		method: "POST",
		url: '/auth/login',
		data: Qs.stringify(data),
	});
};
// 获取网站配置
export const webConfig = () => {
	return request({
		method: "GET",
		url: '/webConfig/getWebConfig'
	});
};
// 获取字典类型列表
export const getList = (data) => {
	return request({
		method: "post",
        url: '/sysDictData/getListByDictType',
        data: Qs.stringify(data),
	});
};
// 获取用户数据列表
export const getMe = () => {
	return request({
		method: "get",
        url: '/system/getMe',
	});
};
